#pragma once

#include "vrdatacore_global.h"
#include "drawableactor.h"
#include <osg/PositionAttitudeTransform>
#include "soundeffectactor.h"

namespace VrDataCore
{
	class VRDATACORE_EXPORT OverallSoundActor:public DrawableActor
	{
	public:
		OverallSoundActor(void);
	protected:
		virtual ~OverallSoundActor(void);
		virtual void createDrawable();
		osg::ref_ptr<SoundEffectActor>					_soundEffectActor;
		QString											_filename;
		float											_gain;
	public:
		virtual void buildPropertyMap();
		void stop();
		void setLoadFile(QString file);
		QString getLoadFile();
		void setGain(float gain);
		float getGain();
	};
}